package test1;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {

	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("test1/beans.xml");
		SimpleMovieLister m = (SimpleMovieLister)context.getBean("simpleMovieLister");
		System.out.println(m.getData("Arthur"));
		SimpleMovieLister m1 = (SimpleMovieLister)context.getBean("simpleMovieLister1");
		System.out.println(m1.getData("Arthur"));
	}

}
